<script setup >
import { provide, ref } from "vue";
import Son from "./components/Son.vue";
//
const money = ref(10000)
const add = (num) => {
  money.value += num
}
provide('money', money)
provide('add', add)
</script>

<template>
  <h1>我是祖先组件👍-{{ money }}</h1>
  <Son></Son>
</template>

